#ifndef __CZF_TRACER_DLL_H__
#define __CZF_TRACER_DLL_H__

#include "TracerDef.h"

extern "C"
{
	__declspec( dllexport ) void SendMsg(int nType, DWORD dwAddr, LPCTSTR lpszMsg);
};

#ifdef _DEBUG
#define DBG_EnterFunc(x) SendMsg(TYPE_ENTER, 0, x)
#define DBG_LeaveFunc(x) SendMsg(TYPE_LEAVE, 0, x)
#define DBG_Msg(x) SendMsg(TYPE_MSG, 0, x)
#define DBG_NewMem(addr, x) SendMsg(TYPE_MEMNEW, (DWORD)addr, x)
#define DBG_DelMem(addr, x) SendMsg(TYPE_MEMDEL, (DWORD)addr, x)

#else
#define DBG_EnterFunc(x)  
#define DBG_LeaveFunc(x)  
#define DBG_Msg(x)  
#define DBG_NewMem(addr, x)    
#define DBG_DelMem(aadr, x) 
  
#endif

#endif